package cc.atliberty.creating.abstractfactory.abstractfacoty1;

public class Client {
    public static void main(String[] args) {
        HumanFactory[] hfs = {new FemaleFactory(), new MalFactory()};
        for (HumanFactory hf : hfs) {
            Human blackHuman = hf.createBlackHuman();
            Human yellowHuman = hf.createYellowHuman();
            Human whiteHuman = hf.createWhiteHuman();
            whiteHuman.getColor();
            whiteHuman.getGender();
            whiteHuman.talk();
            yellowHuman.getColor();
            yellowHuman.getGender();
            yellowHuman.talk();
            blackHuman.getColor();
            blackHuman.getGender();
            blackHuman.talk();
        }
    }
}
